<?php
namespace Home\Controller;
use Think\Controller;
class ArticleColumnController extends Controller {
    public function index(){
    	$banner=M('banner');
        $bannerlist=$banner->select();
        $this->assign("bannerlist",$bannerlist);
        $news=M("addarticle");//获取到addarticle表格
        $list=$news->select();//查询表格的数据
        $this->assign("list",$list);
        $this->display();
    }
 
}